#include<unistd.h>
/*int cal (int argc, char* argv[]){

if (argc!=4){
	printf("wrong arguments\n");
}*/
int main(int argc,char*argv[]){

        int a= atoi(argv[1]);
	int b=atoi(argv[2]);
	int op=argv[3][0];
	int z;
	switch (op){
		case'+':
			z=a+b;
			break;
		case'-':
			z=a-b;
			break;
		case'*':
			z=a*b;
			break;
		case'/':
		        z=a/b;
			break;
	}
printf("%d\n",z);



	printf("enter 2 values\n");
	int s1,s2,s3;
	scanf("%s",&s1);
	scanf("%s",&s2);
	printf("enter the operaton" );
	scanf("%s",&s3);
	execl("cal",s1,s2,s3,0);
return 0;
}
